package com.ruoyi.system.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.system.domain.AOrders;
import com.ruoyi.system.domain.OrdersVo;
import com.ruoyi.system.domain.dto.ShoppingCarDto;
import com.ruoyi.system.domain.vo.OrderDetailsVo;
import org.springframework.transaction.annotation.Transactional;

/**
 * 订单Service接口
 * 
 * @author 王家宁
 * @date 2024-09-02
 */
public interface IAOrdersService extends IService<AOrders>

{
    /**
     * 查询订单
     * 
     * @param id 订单主键
     * @return 订单
     */
    public AOrders selectAOrdersById(Long id);

    /**
     * 查询订单列表
     * 
     * @param aOrders 订单
     * @return 订单集合
     */
    public List<OrdersVo> selectAOrdersList(AOrders aOrders);

    List<OrdersVo> selectMyOrders();

    /**
     * 新增订单
     * 
     * @param aOrders 订单
     * @return 结果
     */
    public int insertAOrders(AOrders aOrders);

    int saveOrdersAndDetails(ShoppingCarDto shoppingCarDto);

    /**
     * 修改订单
     * 
     * @param aOrders 订单
     * @return 结果
     */
    public int updateAOrders(AOrders aOrders);

    /**
     * 批量删除订单
     * 
     * @param ids 需要删除的订单主键集合
     * @return 结果
     */
    public int deleteAOrdersByIds(String ids);

    /**
     * 删除订单信息
     * 
     * @param id 订单主键
     * @return 结果
     */
    public int deleteAOrdersById(Long id);

    OrderDetailsVo getOrderDetails(Long id);
}
